<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
html {
  font-family: Arial,Helvetica,sans-serif;
  background-color: white;
  color: black;
}
table {
  border-collapse: collapse;
  empty-cells: show;
  margin: 1em 0em;
  border: 1px solid black;
}
th, td {
  border: 1px solid black;
  padding: 0.1em 0.2em;
  height: 1.5em;
  width: 12em;
}
td.colspan4, th.colspan4 {
    width: 48em;
}
td.colspan3, th.colspan3 {
    width: 36em;
}
td.colspan2, th.colspan2 {
    width: 24em;
}
th {
  background-color: rgb(192, 192, 192);
  color: black;
  height: 1.7em;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.1em;
}
td.name {
  background-color: rgb(240, 240, 240);
  letter-spacing: 0.1em;
}
td.name, th.name {
  width: 10em;
}
</style>
<title>Mongodb Resources</title>
</head>
<body>
<h1>Mongodb Resources</h1>
<table border="1" id="setting">
<tr>
<th class="name" colspan="5">Setting</th>
</tr>
<tr>
<td class="name">Library</td>
<td>String</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name">Library</td>
<td>MongodbLibrary</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
<table border="1" id="variable">
<tr>
<th class="name" colspan="5">Variable</th>
</tr>
<tr>
<td class="name">${MONGO_LOGGING}</td>
<td>aas5_logging</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name">${MONGO_SESSION}</td>
<td>sessions</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name">${MONGO_HIGHSCORE}</td>
<td>highscores</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
<table border="1" id="keyword">
<tr>
<th class="name" colspan="5">Keyword</th>
</tr>
<tr>
<td class="name"><a name="keyword_Connect to Mongo">Connect to Mongo</a></td>
<td>[Arguments]</td>
<td>${DBName}</td>
<td>${host}=${MONGODB_IP}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Documentation]</td>
<td class="colspan3" colspan="3">Connect to Mongo database\n\n<br>
Example:\n| *Connect to Mongo* | DatabaseName | HostIP |\n</td>
</tr>
<tr>
<td class="name"></td>
<td>Connect To Mongo DB</td>
<td>${host}</td>
<td>${DBName}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Close Mongo">Close Mongo</a></td>
<td>[Documentation]</td>
<td class="colspan3" colspan="3">Disconnect from Mongo database\n\n<br>
Example:\n| *Close Mongo* \ |\n</td>
</tr>
<tr>
<td class="name"></td>
<td>log</td>
<td>Now to close Mongo DB</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>CloseMongoConnection</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_List Collections from a MongoDb">List Collections from a MongoDb</a></td>
<td>[Arguments]</td>
<td>${mongo_database}</td>
<td>${host}=${MONGODB_IP}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Documentation]</td>
<td class="colspan3" colspan="3">List all collections(tables) in one database\n\n<br>
Example:\n| *List Collections from a MongoDb* \ | \ DatabaseName | \ HostIP |\n\n*Output*:\n\nAll the collections</td>
</tr>
<tr>
<td class="name"></td>
<td>Connect to Mongo</td>
<td>${mongo_database}</td>
<td>${host}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>${result}=</td>
<td>GetMongoDBCollections</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Close Mongo</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Return]</td>
<td>${result}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Get a Single Value by Key">Get a Single Value by Key</a></td>
<td>[Arguments]</td>
<td>${mongo_database}</td>
<td>${mongo_table}</td>
<td>${key}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${host}=${MONGODB_IP}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Documentation]</td>
<td class="colspan3" colspan="3">Get First Single Record\n\n<br>
Example:\n| *Get First Single Record* | DatabaseName | \ Collection | Key | \n\n*Output*:\n\nGet the single value from collection by key</td>
</tr>
<tr>
<td class="name"></td>
<td>Connect to Mongo</td>
<td>${mongo_database}</td>
<td>${host}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>${result}=</td>
<td>singleValue</td>
<td>${mongo_table}</td>
<td>${key}</td>
</tr>
<tr>
<td class="name"></td>
<td>Close Mongo</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Return]</td>
<td>${result}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Get First Single Record">Get First Single Record</a></td>
<td>[Arguments]</td>
<td>${mongo_database}</td>
<td>${mongo_table}</td>
<td>${key}=${EMPTY}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${value}=${EMPTY}</td>
<td>${host}=${MONGODB_IP}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Documentation]</td>
<td class="colspan3" colspan="3">Search Some Records\n\n<br>
Example:\n| *Get First Single Record* | DatabaseName | \ Collection | Key | Value |\n\n*Output*:\n\nGet the first single record from collection by key and value</td>
</tr>
<tr>
<td class="name"></td>
<td>Connect to Mongo</td>
<td>${mongo_database}</td>
<td>${host}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>${result}=</td>
<td>single Query</td>
<td>${mongo_table}</td>
<td>${key}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${value}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Close Mongo</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Return]</td>
<td>${result}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Search Some Records">Search Some Records</a></td>
<td>[Arguments]</td>
<td>${mongo_database}</td>
<td>${mongo_table}</td>
<td>${key}=${EMPTY}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${value}=${EMPTY}</td>
<td>${host}=${MONGODB_IP}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Documentation]</td>
<td class="colspan3" colspan="3">Search Some Records\n\n<br>
Example:\n| *Search Some Records* | DatabaseName | \ Collection | Key | Value |\n\n*Output*:\n\nGet the records from collection by key and value</td>
</tr>
<tr>
<td class="name"></td>
<td>Connect to Mongo</td>
<td>${mongo_database}</td>
<td>${host}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>${result}=</td>
<td>Query Some Records</td>
<td>${mongo_table}</td>
<td>${key}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${value}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Close Mongo</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Return]</td>
<td>${result}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Get Count of Searching Some Records">Get Count of Searching Some Records</a></td>
<td>[Arguments]</td>
<td>${mongo_database}</td>
<td>${mongo_table}</td>
<td>${key}=${EMPTY}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${value}=${EMPTY}</td>
<td>${host}=${MONGODB_IP}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Documentation]</td>
<td class="colspan3" colspan="3">Get Count of Searching Some Records\n\n<br>
Example:\n| *Get Count of Searching Some Records* | DatabaseName | \ Collection | Key | Value |\n\n*Output*:\n\nGet the count of the records from collection by key and value</td>
</tr>
<tr>
<td class="name"></td>
<td>Connect to Mongo</td>
<td>${mongo_database}</td>
<td>${host}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>${result}=</td>
<td>QuerySomeRecordsCount</td>
<td>${mongo_table}</td>
<td>${key}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${value}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Close Mongo</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Return]</td>
<td>${result}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Delete Some Records">Delete Some Records</a></td>
<td>[Arguments]</td>
<td>${mongo_database}</td>
<td>${mongo_table}</td>
<td>${key}=${EMPTY}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${value}=${EMPTY}</td>
<td>${host}=${MONGODB_IP}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Documentation]</td>
<td class="colspan3" colspan="3">Delete Some Records\n\n<br>
Example:\n| *Delete Some Records* | DatabaseName | \ Collection | Key | Value |\n\n*Output*:\n\nDeleted records from collection by key and value</td>
</tr>
<tr>
<td class="name"></td>
<td>Connect to Mongo</td>
<td>${mongo_database}</td>
<td>${host}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>${result}=</td>
<td>RemoveSomeRecords</td>
<td>${mongo_table}</td>
<td>${key}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${value}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Close Mongo</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Return]</td>
<td>${result}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Advanced Mongo Query">Advanced Mongo Query</a></td>
<td>[Arguments]</td>
<td>${mongo_database}</td>
<td>${mongo_table}</td>
<td>${query}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${host}=${MONGODB_IP}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Documentation]</td>
<td class="colspan3" colspan="3">*Advanced Mongo Query*\n_You can input JSON query directly, but it must be correct syntax._\n\n<br>
Example:\n| *Advanced Mongo Query* | DatabaseName | Collection | JSON | HOSTIP |\n\n*Output*:\n\nThe records of collection from the json query</td>
</tr>
<tr>
<td class="name"></td>
<td>Connect to Mongo</td>
<td>${mongo_database}</td>
<td>${host}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>${result}=</td>
<td>AdvanceQuery</td>
<td>${mongo_table}</td>
<td>${query}</td>
</tr>
<tr>
<td class="name"></td>
<td>Close Mongo</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Return]</td>
<td>${result}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Advanced Mongo Remove">Advanced Mongo Remove</a></td>
<td>[Arguments]</td>
<td>${mongo_database}</td>
<td>${mongo_table}</td>
<td>${json_message}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${host}=${MONGODB_IP}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Documentation]</td>
<td class="colspan3" colspan="3">*Advanced Mongo Remove*\n_You can input JSON query directly, but it must be correct syntax._\n\n<br>
Example:\n| *Advanced Mongo Remove* | DatabaseName | Collection | JSON | HOSTIP |\n\n*Output*:\n\nRemoved the records of collection from the json query</td>
</tr>
<tr>
<td class="name"></td>
<td>Connect to Mongo</td>
<td>${mongo_database}</td>
<td>${host}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>${result}=</td>
<td>AdvanceRemove</td>
<td>${mongo_table}</td>
<td>${json_message}</td>
</tr>
<tr>
<td class="name"></td>
<td>Close Mongo</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Return]</td>
<td>${result}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Advanced Mongo Query Count">Advanced Mongo Query Count</a></td>
<td>[Arguments]</td>
<td>${mongo_database}</td>
<td>${mongo_table}</td>
<td>${query}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${host}=${MONGODB_IP}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Documentation]</td>
<td class="colspan3" colspan="3">*Advanced Mongo Query Count*\n\n_You can input JSON query directly, but it must be correct syntax._\n\n<br>
Example:\n| *Advanced Mongo Query Count* | DatabaseName | Collection | JSON | HOSTIP |\n\n*Output*:\n\nThe count of records from the json query</td>
</tr>
<tr>
<td class="name"></td>
<td>Connect to Mongo</td>
<td>${mongo_database}</td>
<td>${host}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>${result}=</td>
<td>AdvanceQueryCount</td>
<td>${mongo_table}</td>
<td>${query}</td>
</tr>
<tr>
<td class="name"></td>
<td>Close Mongo</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Return]</td>
<td>${result}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Get All Records">Get All Records</a></td>
<td>[Arguments]</td>
<td>${mongo_database}</td>
<td>${mongo_table}</td>
<td>${key}=${EMPTY}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${value}=${EMPTY}</td>
<td>${host}=${MONGODB_IP}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Documentation]</td>
<td class="colspan3" colspan="3">Get All Records\n\n<br>
Example:\n| *Get All Records* | DatabaseName | \ Collection |\n\n*Output*:\n\nAll the records of the collection\n</td>
</tr>
<tr>
<td class="name"></td>
<td>Connect to Mongo</td>
<td>${mongo_database}</td>
<td>${host}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>${result}=</td>
<td>Query All Records</td>
<td>${mongo_table}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Close Mongo</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Return]</td>
<td>${result}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Get Count of All Records">Get Count of All Records</a></td>
<td>[Arguments]</td>
<td>${mongo_database}</td>
<td>${mongo_table}</td>
<td>${key}=${EMPTY}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${value}=${EMPTY}</td>
<td>${host}=${MONGODB_IP}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Documentation]</td>
<td class="colspan3" colspan="3">Get Count of All Records\n\n<br>
Example:\n| *Get Count of All Records* | DatabaseName | \ Collection |\n\n*Output*:\n\nThe count of \ records of the collection</td>
</tr>
<tr>
<td class="name"></td>
<td>Connect to Mongo</td>
<td>${mongo_database}</td>
<td>${host}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>${result}=</td>
<td>Query All Records Count</td>
<td>${mongo_table}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Close Mongo</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Return]</td>
<td>${result}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Select The Last Record">Select The Last Record</a></td>
<td>[Arguments]</td>
<td>${dbCollName}</td>
<td>${dbFieldName}</td>
<td>${mongo_database}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${host}=${MONGODB_IP}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Connect to Mongo</td>
<td>${mongo_database}</td>
<td>${host}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>${result}=</td>
<td>SelectTheLastEntry</td>
<td>${dbCollName}</td>
<td> ${dbFieldName}</td>
</tr>
<tr>
<td class="name"></td>
<td>Close Mongo</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Return]</td>
<td>${result}</td>
<td></td>
<td></td>
</tr>
</table>
</body>
</html>
